#ifndef _DATAPACK_H_
#define _DATAPACK_H_

#include <iostream>

class DataPack
{
public:
    float euler_angle[3] = {0, 0, 0};      //相对于云台坐标系的欧拉角状态描述，旋转顺序为Z-Y-X,存储yaw-pitch-roll
    float quaternion[4] = {0, 0, 0, 0};    //相对于云台坐标系的四元数状态描述
    float angular_velocity[3] = {0, 0, 0}; //IMU三轴角速度,Wx-Wy-Wz,也就是Wroll-Wpitch-W-yaw
    float accel_speed[3] = {0, 0, 0};      //IMU三轴加速度,ax-ay-az
    bool isRead = false;                   //是否从IMU读到数据(是否是有效包)
    float pitch;
    bool enemyColor = 1;
    double t=0;                               
public:
    DataPack();
    void onlySavePitch();
    ~DataPack();
};

#endif